package com.lening.provider.service.impl.OwnersDecoration;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lening.common.base.BaseServiceImpl;
import com.lening.provider.dao.OwnersDecoration.OwnerDecorationTableDAO;
import com.lening.provider.dto.OwnersDecoration.OwnerDecorationTableDTO;
import com.lening.provider.po.OwnersDecoration.OwnerDecorationTablePO;
import com.lening.provider.service.OwnersDecoration.OwnerDecorationTableService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 刘政华
 * @datetime 2024/6/5 11:50
 * @description 类对象
 */
@Slf4j
@Service
public class OwnerDecorationTableServiceImpl extends BaseServiceImpl<OwnerDecorationTableDAO, OwnerDecorationTablePO, OwnerDecorationTableDTO> implements OwnerDecorationTableService {

    @Resource
    private OwnerDecorationTableDAO ownerDecorationTableDAO;

    @Override
    public Page<OwnerDecorationTableDTO> ownerList(Page<OwnerDecorationTableDTO> ownerDecorationTableDTO) {
        Page<OwnerDecorationTableDTO> ownerPage = ownerDecorationTableDAO.getList(ownerDecorationTableDTO);
        return ownerPage;
    }

    @Override
    public Page<?> page(OwnerDecorationTableDTO ownerDecorationTableDTO) {
        return this.baseMapper.getList(ownerDecorationTableDTO);
    }
}
